

<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>H+ 后台主题UI框架 - 空白页</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

   <link rel="shortcut icon" href="__STATIC__/layout/favicon.ico">
     <link href="__STATIC__/layout/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__STATIC__/layout/css/font-awesome.css?v=4.4.0" rel="stylesheet">
     <!-- jqgrid-->
    <link href="__STATIC__/layout/css/animate.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="__STATIC__/layout/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
    <style>
     #ptab tbody tr:nth-child(odd){background:#f7f3f7 }
    </style>
</head>

<body style="color:#333;padding:3px;">
    <!-- 标题 -->
    <div class="page-heade">
        <h2 class="title_color text-center">省份目标达成报表</h2>
    </div>
    <!-- 标题 -->
    <div>
    <form action=""  class="form-inline" id="f1">
      <table class="tab-content table-bordered  table" border="1" style="margin-bottom:1px">
          <tr>
          <td><label for="" class="form-label">年份：</label>
       		
            <select name="cid" id="cid" class="select form-control">
                 {volist name="cainian" id="c"}
                  <option value="{$c.id}" {if $cid==$c.id} selected {/if}>{$c.title}</option>
                 {/volist}
              </select>
			<span class="lr_5"></span>
              <button class="btn btn-info query" type="button">查询</button>
             
              <button class="btn btn-info LendExcel" type="button">导出Excel</button>
          </td>
            </tr>
      </table>
      <table class="table table-bordered table-hover text-right bud_hei" id="ptab">
          <tr class="info">
            <th class="text-center">省份名</th>
            <th class="text-center">&nbsp;</th>
            {volist name="kaohe1" id="k1"}
            <th class="text-center">{$k1.title}</th>
            {/volist}
            <th class="text-center">小计</th>
          </tr>
          <tbody>
           {volist name="zarr" id="j"}
          <tr>
        <td class="text-center" rowspan="3">{$j.title}</td>
        <td class="text-center">销售目标(元)</td>
        {volist name="$j.yjxl" id="xl"}
        <td class="ObjectNum">{$xl}</td>
        {/volist}
        <td class="ObjectNum trTotal">{$j.zyjxl}</td>
      </tr>
     
      <tr>
        <td class="text-center">实际达成(元)</td>
        {volist name="$j.xldc" id="xl"}
        <td class="ObjectNum">{$xl}</td>
        {/volist}
        <td class="ObjectNum trTotal">{$j.zxldc}</td>
      </tr>
      
       <tr>
        <td class="text-center">实际达成率</td>
         {volist name="$j.dcl" id="xl"}
        <td>{if $xl=='-'} - {else/} {$xl} %{/if}</td>
        {/volist}
        <td class="trTotal">{if $j.zdcl=='-'} - {else/} {$j.zdcl} %{/if}</td>
      </tr>
          {/volist}
			
          </tbody>
      </table>
</form>
    </div>
    <!-- 全局js -->
    <script src="__STATIC__/layout/js/jquery.min.js?v=2.1.4"></script>
    <script src="__STATIC__/layout/js/bootstrap.min.js?v=3.3.6"></script>
    <!-- <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> -->
    <script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
     <script src="__STATIC__/layout/js/plugins/layer/laydate/laydate.js"></script>
      <script src="__STATIC__/layout/js/common.js"></script>
    <script>
    $(".query").click(function(){
      document.getElementById("f1").submit();
    })
    $(".LendExcel").click(function(){
      window.open("{:url('shengjddc')}?cid="+$("#cid").val())
    })
       $(document).ready(function(){
            var $ObjectNum =$(".ObjectNum");
               toNum($ObjectNum);
             });
    </script>
</body>

</html>
